﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="uc_Menu.ascx.cs" Inherits="Web_NhaMay.UC.uc_Menu" %>


<asp:DataList ID="DataList1" runat="server" OnItemDataBound="DataList1_ItemDataBound" RepeatDirection="Horizontal">
    <ItemTemplate>
        <asp:Label ID="lbID" runat="server" Text='<%# Eval("CaID") %>' Visible="false"></asp:Label>
        <li><a href="<%#Eval("CaLink") %>?CaID=<%#Eval("CaID") %>">
            <span class="title">
                <asp:Label ID="Label2" runat="server" Text='<%# Eval("CaName") %>'></asp:Label></span><br />
            <span class="sub"></span></a>
            <ul>
                <asp:DataList ID="subcat" runat="server" RepeatDirection="Horizontal"
                    RepeatLayout="Flow">
                    <ItemTemplate>
                        <li><a href='<%#Eval("CaLink") %><%#Eval("CaID")%><%# "&CaName=" + Eval("CaName") %>'>
                            <asp:Label ID="Label4" runat="server" Text='<%# Eval("CaName") %>'></asp:Label>
                        </a></li>
                    </ItemTemplate>
                </asp:DataList>
            </ul>
        </li>
<%--        <asp:ObjectDataSource ID="objDSSubCate" runat="server" SelectMethod="GetCateSub"
            TypeName="BCM.TemplateDemo.BLL.BCategory">
            <SelectParameters>
                <asp:ControlParameter ControlID="Label1" Name="_caid" PropertyName="Text" Type="Int32" />
            </SelectParameters>
        </asp:ObjectDataSource>--%>
    </ItemTemplate>
</asp:DataList>